package cn.edu.nju.software.zp13.client.assignment3.xmlNodeEntity;

import cn.edu.nju.software.zp13.core.annotation.Element;
import cn.edu.nju.software.zp13.core.annotation.TextNode;
import cn.edu.nju.software.zp13.core.xmlNodeEntity.XmlNodeEntity;

@Element(tagName = "成绩")
public class Score extends XmlNodeEntity {
	@Element(tagName = "学号")
	private String studentId;
	@Element(tagName = "得分")
	private int score;

	public Score() {

	}

	public Score(String studentId, int score) {
		super();
		this.studentId = studentId;
		this.score = score;
	}

	@TextNode(fatherTagName = "得分")
	public String scoreToString() {
		return score + "";
	}

	public String getStudentId() {
		return studentId;
	}

	public void setStudentId(String studentId) {
		this.studentId = studentId;
	}

	public int getScore() {
		return score;
	}

	public void setScore(int score) {
		this.score = score;
	}

}
